import 'package:flutter/widgets.dart';
import 'package:flutter_jpf_core/network/http_manager.dart';
import 'package:flutter_jpf_core/util/colors_util.dart';
import 'package:flutter_jpf_core/util/dialog_util.dart';
import 'package:flutter_jpf_core/widgets/nodata/contain_nodata_view.dart';
import 'package:flutter_jpf_core/widgets/nodata/nodata_view.dart';

class AppTheme
{

  static Color mainAcColor = ColorsUtil.hexColor(0x357aff);
  static void useDefault(){

    //提示框
    DialogUtil.config(backgroundColor:Color(0xfff1f2f3),
        okTitleColor: Color(0xff333333),
        cancelTitleColor: Color(0xff333333),
        maxListViewHeight: 400 );

    //无数据组建配置
    ContainNodataView.config(nodataView: NoDataView(strMsg: "暂无数据",dataType: NoDataView.nodata,));

    //网络工具配置
    HttpManager.config();
  }
}